package com.team.lostProperty.service.impl;

import com.team.lostProperty.entity.Type;
import com.team.lostProperty.mapper.TypeDao;
import com.team.lostProperty.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author duzq
 * @date 2020/07/22 18:33
 **/
@Service
public class TypeServiceImpl implements TypeService {

    @Autowired
    private TypeDao typeDao;

    @Override
    public int getAllCount() {
        return typeDao.getAllCount();
    }

    @Override
    public List<Type> getType() {
        return typeDao.getType();
    }

    @Override
    public List<Type> selectType(Type type) {
        return typeDao.selectType(type);
    }

    @Override
    public int deleteType(long typeId) {
        return typeDao.deleteType(typeId);
    }

    @Override
    public int updateType(Type type) {
        return typeDao.updateType(type);
    }

    @Override
    public int insertType(Type type) {
        return typeDao.insertType(type);
    }
}
